package com.wanxi;

import java.util.Scanner;

public class AddOrEven {
    public static void main(String[] args) {

        int num = getNumber("请输入一个整数： ");

        judgement(num);


    }


    /**
     * 得到键盘输入的一个整数
     *
     * @return
     */
    private static int getNumber(String tips) {
        Scanner scanner = new Scanner(System.in);
        System.out.print(tips);
        int num = scanner.nextInt();

        return num;
    }

    /**
     * 判断奇数偶数，输出结果
     *
     * @param num
     */
    private static void judgement(int num) {
        if (num % 2 == 0) {
            System.out.println("偶数");
        }
        if (num % 2 != 0) {
            System.out.println("奇数");
        }
    }


}
